package com.liyao.storehouse.controller;

import com.liyao.storehouse.service.logService;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/log")
public class logController {
    @Resource
    logService service;

    @RequestMapping("/getToolReceiveLogList")
    @ResponseBody
    public JSONObject getToolReceiveLogList( int page, int limit){
        return service.getToolReceiveLogList(page,limit);
    }

    @RequestMapping("/SearchtoolReceiveLogList")
    @ResponseBody
    public JSONObject SearchtoolReceiveLogList(int page, int limit,String toolName,String model,String location,String userName,String status) {
        return service.SearchtoolReceiveLogList(page, limit,toolName,model,location,userName,status);
    }
}
